/* resets for compatibility with existing CSS */
.date-selector,
.date-selector * {
    background: none;
    border: none;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    width: auto;
}

.date-selector {
    background: #f2f2f2;
    border: 1px solid #bbb;
    display: none;
    margin: -1px 0 0 0;
    padding: 5px;
    position: absolute;
    z-index: 100000;
}

.date-selector-ieframe {
    display: none;
    position: absolute;
    z-index: 99999;
}

.date-selector .nav {
    width: 17.5em; /* 7 * 2.5em */
}

.date-selector .month-nav, 
.date-selector .year-nav {
    margin: 0 0 3px 0;
    padding: 0;
    display: block;
    position: relative;
    text-align: center;
}

.date-selector .month-nav {
    float: left;
    width: 55%;
}

.date-selector .year-nav {
    float: right;
    width: 35%;
    margin-right: -8px; /* compensate for cell borders */
}

.date-selector .month-name,
.date-selector .year-name {
    font-weight: bold;
    line-height: 20px;
}

.date-selector .button {
    display: block;
    position: absolute;
    top: 0;
    width: 18px;
    height: 18px;
    line-height: 17px;
    font-weight: bold;
    color: #003c78;
    text-align: center;
    font-size: 120%;
    overflow: hidden;
    border: 1px solid #f2f2f2;
}

.date-selector .button:hover,
.date-selector .button.hover {
    background: none;
    color: #003c78;
    cursor: pointer;
    border-color: #ccc;
}

.date-selector .prev {
    left: 0;
}

.date-selector .next {
    right: 0;
}

.date-selector table {
    border-spacing: 0;
    border-collapse: collapse;
    clear: both;
}

.date-selector th,
.date-selector td {
    width: 2.5em;
    height: 2em;
    padding: 0;
    text-align: center !important;
    color: black;
}

.date-selector td {
    border: 1px solid #ccc;
    line-height: 2em;
    text-align: center;
    white-space: nowrap;
    color: #003c78;
    background: white;
}

.date-selector td.today {
    background: #fffeb3;
}

.date-selector td.unselected-month {
    color: #ccc;
}

.date-selector td.selectable-day {
    cursor: pointer;
}

.date-selector td.selected {
    background: #d8dfe5;
    font-weight: bold;
}

.date-selector td.selectable-day:hover,
.date-selector td.selectable-day.hover {
    background: #003c78;
    color: white;
}

